﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using K.Service;
using K.Contract;
using K.EnterpriseLibary;
using K.ClientPublic;
namespace K.Presentation
{
    public class CartonAction
    {
        private ICartonProcess CartonProcess = null;

        public CartonAction()
        {
        }

        public void  Initialize(string EndPointName)
        {
            CartonProcess = K.ClientPublic.RemotingPublic.CreateChannel<ICartonProcess>(EndPointName);
        }

          
        private Carton _carton;
        public Carton carton
        {
            get
            {
                return _carton;
            }
            set
            {
                _carton = value;
            }
        }

        public Carton SelectCarton(Carton carton)
        {
            //return CartonProcess.SelectCarton(carton);
            return PackingPublic.GetCarton(carton);
        }
    }
}
